<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="nav" content="0" />
<meta name="acc" content="0" />
<title>日常监督</title>
<script type="text/javascript">
	$(document).ready(
			function() {
				var date = new Date();
				$.get(
						"${ctx}/quality/check_result.action?filter_LIKES_flowCheck.id=${id}&time="
								+ date, function(data) {
							$("#frame").html(data);
						});
			});

	function closes() {
		$(window.parent.close());
	}
</script>
</head>
<body>
	<form action="${ctx }/quality/check!save.action" method="post"
		id="inputForm" class="yform" enctype="multipart/form-data">
		<div id="caption">
			<h6>${licenseplateNumber}编制监督检查</h6>
		</div>
		<input type="hidden" name="id" id="id" value="${id }"> <input
			type="hidden" name="projectInfo.id" id="projectInfo.id"
			value="${empty param.projectId ? projectId : param.projectId }">
		<input type="hidden" name="type" id="type"
			value="${empty param.type ? type : param.type }">
		<div>
			<table class="noborder">
				<tr class="type-text">
					<td>工程名称</td>
					<td><pt:labels type="proj"
							argument1="${empty param.projectId ? projectId : param.projectId }"
							single="true"></pt:labels>
					</td>
					<td>发文编号</td>
					<td>${flowCode }</td>
				</tr>
				<tr class="type-text">
					<td>检查开始时间</td>
					<td><fmt:formatDate value="${checkDate }" pattern="yyyy-MM-dd" />
					</td>
					<td>检查结束时间</td>
					<td><fmt:formatDate value="${checkEndDate }"
							pattern="yyyy-MM-dd" /></td>
				</tr>
				<tr class="type-text">
					<td>检查主要内容</td>
					<td colspan="3">${content }</td>
				</tr>
				<tr class="type-text">
					<td>备注</td>
					<td colspan="3">${remark }</td>
				</tr>
				<tr class="type-text">
					<td>编制人</td>
					<td>${preparer }</td>
					<td>编制时间</td>
					<td>${prepareDate }</td>
				</tr>
				<tr class="type-text">
					<td>负责人</td>
					<td colspan="3">${auditor }</td>
				</tr>
				<tr class="type-text">
					<td>审核意见</td>
					<td colspan="3">${auditIdea }</td>
				</tr>
				<tr class="type-text">
					<td>复核人</td>
					<td colspan="3">${verifier }</td>
				</tr>
				<tr class="type-text">
					<td>复核意见</td>
					<td colspan="3">${verifyIdea }</td>
				</tr>
			</table>
			<c:if test="${not empty attachmentSet }">
				<div id="caption">
					<h6>${licenseplateNumber}已有附件</h6>
				</div>
				<table>
					<c:forEach items="${attachmentSet }" var="attachment"
						varStatus="state">
						<tr id="tr${state.index }">
							<td colspan="4"><a title="下载"
								href="${ctx}/servlet/annex?id=${attachment.id}">${attachment.upfileFileName}(${attachment.type})<fmt:formatDate
										value="${attachment.fileTime}" pattern="yyyy-MM-dd" /> </a> <span
								onclick="deleteAttachmentById('${attachment.id}','tr${state.index }')"
								class="delete" title="删除附件"></span></td>
						</tr>
					</c:forEach>
				</table>
			</c:if>
		</div>
		<div id="frame"></div>
		<div class="type-button">
			<input type="button" value="关闭" onclick="closes()">
		</div>
	</form>
</body>
</html>